package cn.zhz.service;

import cn.zhz.dao;
import cn.zhz.pojo.games;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("gameService")
public class gameServiceImpl implements gameService{

    @Autowired
    gameDao gameDao;

    @Override
    public List<games> getlistgame(String gameName, String gameType,
                                   String gameCompany, int gameYear) {
        return gameDao.getgamelist(gameName,gameType,gameCompany,gameYear);
    }

    @Override
    public int addgameinfo(games games) {
        return gameDao.gameadd(games);
    }
}
